package com.crazyauntzhang.easyshopbackend.util;

public class FormatChecker {

	public static Boolean isNumber(String str){
		str = str.replaceAll("[\\s]*", "");
		try {
			for (int i = 0; i < str.length(); i++) {
				int parseInt = Integer.parseInt(str.substring(i, i + 1));
			}
		} catch (NumberFormatException e) {
			return false;
		}
		return true;
	}
}
